<?php
  namespace Admin\Model;
  use Think\Model;
  class UserModel extends Model{
	  public function getUserList($page=1,$limit=10){
		  $userList=$this->field('user_id,user_name,email,phone,addres,card_id')->page($page,$limit)->select();
		  return $userList;
	  }
	  
	  public function getUserCount(){
		  $count=$this->count();
		  return $count;
	  }
	  
	  public function deleteUser($userId){
		  $affectRow=$this->where('user_id=%d',$userId)->delete();
		  return $affectRow;
		  
	  }
  }
